import random

random.seed(1)


def SystemBalls_init(self):
        self.reds = set()
        self.blues = set()


def auto_balls(self):
    self.reds = set(random.sample(list(self.all_red_balls), k=6))
    self.blues.add(random.choice(list(self.all_blue_balls)))


def xprint(self):
    print(repr(sorted(self.reds)), repr(sorted(self.blues)))


class SystemBalls(object):

    all_red_balls = set(range(1, 33 + 1))
    all_blue_balls = set(range(1, 16 + 1))

    __init__ = SystemBalls_init

    auto_balls = auto_balls

    print = xprint


obj1 = SystemBalls()
obj1.auto_balls()
obj1.print()
print(repr(obj1.__class__))
